<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>添加权限</title>
	
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/main.css" media="all">
	<script src="${pageContext.request.contextPath}/lib/layui/layui.js" charset="utf-8"></script>
	<script src="${pageContext.request.contextPath}/js/x-layui.js" charset="utf-8"></script>
	
	<script>
	    layui.use(['form','layer'], function(){});
	</script>

</head>

<body>
<div class="x-body">
    <form action="" method="post" class="layui-form layui-form-pane">
        
        <div class="layui-form-item">
            <label for="name" class="layui-form-label">
                <span class="x-red">*</span>权限名称
            </label>
            <div class="layui-input-inline">
                <input type="text" id="title" name="title" required="" lay-verify="required"
                       autocomplete="off" class="layui-input" value="小区管理">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="name" class="layui-form-label">
                <span class="x-red">*</span>权限规则
            </label>
            <div class="layui-input-inline">
                <input type="text" id="name" name="name" required="" lay-verify="required"
                       autocomplete="off" class="layui-input" value="community.*">
            </div>
        </div>
		<div class="layui-form-item">
		    <label for="name" class="layui-form-label">
		        <span class="x-red">*</span>权限等级
		    </label>
		    <div class="layui-input-inline">
		        <select name="pid">
		            <option value="0" selected>1</option>
		            <option value="1" >2</option>
		            <option value="2" >3</option>
		        </select>
		    </div>
		</div>

        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="radio" name="status" value="1" title="启用" checked="checked">
                <div class="layui-unselect layui-form-radio layui-form-radioed"><i class="layui-anim layui-icon layui-anim-scaleSpring"></i>
                    <div>启用</div>
                </div>
                <input type="radio" name="status" value="0" title="禁用">
                <div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i>
                    <div>禁用</div>
                </div>


            </div>
        </div>
        <div class="layui-form-item">
            <button type="submit" class="layui-btn" lay-submit="" lay-filter="add">保存</button>
        </div>
    </form>
</div>


</body>

</html>